<?php

class Section {

    /**
     * 验证成功
     *
     * @return array
     */
    public static function ok($msg = '') {
        return ['success'=>true, 'msg'=> $msg];
    }

    /**
     * 验证失败
     *
     * @param string $msg 错误提示字符串，默认值"验证失败"
     * @return array
     */
    public static function fail($msg = '') {
        return ['success'=>false, 'msg'=>$msg];
    }
}
